package git.bds.nyc.communal.convert;

import git.bds.nyc.communal.model.domain.Agreement;
import git.bds.nyc.communal.model.dto.AgreementDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author 成大事
 * @since 2022/11/26 19:29
 */
@Mapper
public interface AgreementConvert {

    AgreementConvert INSTANCE = Mappers.getMapper(AgreementConvert.class);


    /**
     * 达成一致
     *
     * @param agreementDTO 协议dto
     * @return {@link Agreement}
     */
    Agreement toAgreement(AgreementDTO agreementDTO);

}
